<script>

export default {
  name: 'TestCom02',
  data() {
    return {
      title: "记事本",
      msg: "凡事预则立，不预则废",
      s1: {
        color: "blue",
        fontSize: "20px",
        textAlign: "center",
      }
    }
  }
}
</script>

<template>
  <div>
    <h1>{{ title }}</h1>

    <p v-text="msg" :style="s1" class="container"></p>

  </div>
</template>

<style scoped>
h1 {
  margin-top: 20px;
  text-align: center;
}

.container {
  margin-top: 30px;
  width: 700px;
  height: 70px;
  background-color: #64edc8;
  border-radius: 5px;
  text-align: center;
  line-height: 70px;

}
</style>